package com.example.autosize.module.demo1

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.autosize.R
import me.jessyan.autosize.internal.CustomAdapt

/**
 * Created by 舍长
 * describe:进行高度适配
 */
class HeightActivity : AppCompatActivity() , CustomAdapt {

    //取消以宽度为基准进行适配
    override fun isBaseOnWidth(): Boolean {
        return false
    }

    //返回高度的单位尺寸
    override fun getSizeInDp(): Float {
        return 640f
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_height)
    }
}
